import { Controller, Get, Post,Param, Put } from '@nestjs/common';
import { UserService } from './article.service';

@Controller('user')
export class UserController {
  constructor(private readonly UserServiceAlias: UserService) {}

  @Get('/')
  find(): string {
    return this.UserServiceAlias.find();
  }

  @Put('/')
    

  @Post('/find/:id')
  async getCat(@Param('id') data): Promise<{}>{
     return await this.UserServiceAlias.getCat('a');
  }
}
